#include "Heap.h"

void Test() {
	Heap* hp;
	hp = (Heap*)malloc(sizeof(Heap));
	HeapInit(hp);
	HeapPush(hp, 1);
	HeapPush(hp, 2);
	HeapPush(hp, 3);
	HeapPush(hp, 4);
	printf("%d\n",HeapTop(hp));

	HeapPop(hp);
	HeapPop(hp);
	HeapPush(hp, 8);
	printf("%d\n", HeapTop(hp));
	printf("%d\n", HeapSize(hp));
	
	HeapPrint(hp);

	HeapDestory(hp);
}

int main() {
	Test();
	return 0;
}